//
//  YMLoginInputBoxView.h
//  YMMedical
//
//  Created by y s on 2023/7/13.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@protocol YMLoginInputBoxViewDelegate <NSObject>

/** 输入框内容改变 */
- (void)textFiledChanged:(UITextField *)sender;
/** 获取验证码 */
- (void)getMoboleCode:(UIButton *)sender;

@end

@interface YMLoginInputBoxView : UIView

/** 左上角标题 */
@property (nonatomic, copy) NSString *strTitle;
/** 默认提示文字 */
@property (nonatomic, copy) NSString *strPlace;
/** 输入文字 */
@property (nonatomic, copy) NSString *strInput;
/** 是否可编辑 */
@property (nonatomic, assign) BOOL isEditing;
/** 键盘类型 */
@property (nonatomic, assign) UIKeyboardType keyboardType;

@property (nonatomic, assign) NSInteger tfTag;
/** 是否是密码 */
@property (nonatomic, assign) BOOL isPwd;

@property (nonatomic, assign) NSTextAlignment tfAlignment;

/** 是否现实右边按钮 默认不显示 */
@property (nonatomic, assign) BOOL showBtn;
/** 右边按钮文字 */
@property (nonatomic, copy) NSString *strBtn;

@property (nonatomic, weak) id<YMLoginInputBoxViewDelegate> delegate;


/** 隐藏键盘 */
- (void)dismissKeyboard;
/** 弹出键盘 */
- (void)showKeyboard;

@end

NS_ASSUME_NONNULL_END
